package com.burns.spring.aop;

import org.springframework.aop.framework.ProxyFactory;

public class Manager {

	// 创建代理
	public static void main(String[] args) {
		Target target = new Target();
		ProxyFactory dl = new ProxyFactory();
		dl.addAdvice(new LoggerExecute());
		dl.setTarget(target);
		Target proxy = (Target) dl.getProxy();
		proxy.execute("AOP的简单实现");
	}
}
